package edu.sdjzu.exam.mapper.examSession;

import edu.sdjzu.exam.domain.cheat.CheatingRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CheatingRecordMapper {

    @Insert("INSERT INTO Cheating_Records (session_id, student_id, exam_id, is_suspected, reasons, comments, marked_by, marked_at) " +
            "VALUES (#{sessionId}, #{studentId}, #{examId}, #{isSuspected}, #{reasons}, #{comments}, #{markedBy}, #{markedAt})")
    void insertCheatingRecord(CheatingRecord record);
}
